package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 订单保函信息表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-15
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_orders_guarantee")
@ApiModel(value = "OrdersGuarantee对象", description = "订单保函信息表")
public class OrdersGuarantee extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("订单编号")
    @TableField("orders_id")
    private Long ordersId;

    @ApiModelProperty("保函类型")
    @TableField("guarantee_type")
    private Integer guaranteeType;

    @ApiModelProperty("保函编号")
    @TableField("guarantee_code")
    private String guaranteeCode;

    @ApiModelProperty("保函名称")
    @TableField("guarantee_name")
    private String guaranteeName;

    @ApiModelProperty("保函存储路径")
    @TableField("path")
    private String path;

    @ApiModelProperty("删除标识（0 正常 2删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String ORDERS_ID = "orders_id";

    public static final String GUARANTEE_TYPE = "guarantee_type";

    public static final String GUARANTEE_CODE = "guarantee_code";

    public static final String GUARANTEE_NAME = "guarantee_name";

    public static final String PATH = "path";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
